/**
 * Getting Started with Capture.
 * 
 * Reading and displaying an image from an attached Capture device. 
 */

class CamFeed extends WallMode { 
  import processing.video.*;
  String[] devices; 
  Capture cam;


  CamFeed(PApplet parent) {
    devices = Capture.list();
    cam = new Capture(parent, 48, 48);
    // println(devices);
  }

  void keyPressed() {
  }
  void setup() {
  } 
  void modeSelected () {
  }

  void draw() {
    if (cam.available() == true) {
      cam.read();
      image(cam, 0, 0);
    }
  }
  int getDisplayTime() {
    return 60;
  }
}

